//
//  DVActivityModel.h
//  DVActivity
//
//  Created by pan Shiyu on 13-5-6.
//  Copyright (c) 2013年 pan Shiyu. All rights reserved.
//

#import <Foundation/Foundation.h>

@class DVActivity;
@interface DVActivityModel : NSObject

+ (void)createActivity:(DVActivity*)activity
                    success:(void (^)(NSString *actID))success
                    failure:(void (^)(NSError *error))failure;


#warning TODO qph:分页的话，建议用 offset limit控制的同时，需要额外加一个 hasNext 字段，标记是否有更多数据(反映在客户端上就是是否会再次发送请求)
+ (void)requestActivityList:(NSDate*)lastUpdateTime
                    success:(void (^)(NSArray *actList))success
                    failure:(void (^)(NSError *error))failure;

+ (void)joinActivity:(NSString*)actID
             success:(void (^)())success
             failure:(void (^)(NSError *error))failure;

@end
